
@extends('layout.master')
@section('content')


<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title  am-cf">商品分类列表</div>


</div>
<div class="widget-body  am-fr">



        

        <div class="am-u-sm-12">
        <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black " id="example-r">
        <thead>
        <tr>
        <th>栏目id</th>
        <th>栏目名称</th>
        <th>栏目pid</th>
        <th>操作</th>
        </tr>
        </thead>


        <tbody>

        @foreach($cats as $cat)
        
        <tr class="gradeX">
        <td>{{$cat->cat_id}}</td>
        <td><?php echo "|-",str_repeat('--',2*$cat->lev);?>{{$cat->cat_name}}</td>
        <td>{{$cat->parent_id}}</td>
        <td>
            <div class="tpl-table-black-operation">
                <a href="/cat/{{$cat->cat_id}}/edit">
                    <i class="am-icon-pencil" ></i> 编辑
                </a>
               
                <a href="/cat/{{$cat->cat_id}}" class="tpl-table-black-operation-del">
                    <i class="am-icon-trash"></i> 删除
                </a>
                
            </div>
        </td>
        </tr>
        @endforeach


            <!-- more data -->
            </tbody>
            </table>
            </div>
            
    </div>
</div>


@endsection